const initialState = {
    arr:[],
    floorarr:[]
}

export default (state = initialState, { type, payload }) => {
  let newobj = JSON.parse(JSON.stringify(state))
  switch (type) {
 
  case "getpulllist":
      newobj.arr = [ ...newobj.arr,...payload]
    return newobj
  case "getfloorlist":
    newobj.floorarr = payload
    return newobj
  default:
    return state
  }
}
